package cn.nju.zyy.model.hello;

import org.springframework.stereotype.Component;

@Component
public class MessageStore {
	
	private String message;
	
	public MessageStore() {
		setMessage("Hello Struts2");
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	@Override
	public String toString() {
		return message + " (from toString method)";
	}

}
